//
//  WATFSpeedResultCell.swift
//  WiFiFaster
//
//  Created by one on 2023/12/28.
//

import UIKit

class WATFSpeedResultCell: UICollectionViewCell {
    override init(frame: CGRect) {
        super.init(frame: frame)
        contentView.addSubview(watf_bgView)
        contentView.addSubview(watf_titleLabel)
        contentView.addSubview(watf_valueLabel)
        watf_bgView.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
        watf_titleLabel.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalToSuperview().offset(14)
        }
        watf_valueLabel.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.bottom.equalToSuperview().offset(-14)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    //MARK: - watf lazy
    lazy var watf_bgView: UIImageView = {
        let watf_bgView = UIImageView(image: UIImage(named: "watf_result_speedCell"))
        return watf_bgView
    }()
    lazy var watf_titleLabel: UILabel = {
        let watf_titleLabel = UILabel()
        watf_titleLabel.textColor = .white
        watf_titleLabel.font = UIFont.systemFont(ofSize: 14)
        return watf_titleLabel
    }()
    lazy var watf_valueLabel: UILabel = {
        let watf_valueLabel = UILabel()
        watf_valueLabel.textColor = .white
        watf_valueLabel.font = UIFont.systemFont(ofSize: 16)
        return watf_valueLabel
    }()
}
